<?php
include('includes.php');
include('adminheader.php');

// Setup Table for Settings
$crud = new ajaxCRUD('News', tPreset.'m_news', $pk, $acFolder);

// Crud Guidance
$crud->omitPrimaryKey();
$crud->displayAddFormTop();
$crud->omitAddField('date');
$crud->addValueOnInsert('date', 'NOW()');
$crud->setOrientation('vertical');
$crud->setTextareaHeight('content', 125);
$crud->formatFieldWithFunction('author', 'formatAsAdmin');

// Default Admin DropDown Selection //////////////////////////////
$admins = getAdmins();
$crud->defineAllowableValues('author', $admins);

include('adminfooter.php');
